<template>
  <div>
    <button :class="[size, type]" class="yk-bottom">
      <slot></slot>
    </button>
  </div>
</template>

<script setup>
import { defineProps } from "vue"

const props = defineProps({
  size: {
    default: 'base',
    type: String
  },
  type: {
    default: 'primary',
    type: String
  }
})

</script>

<style lang="less" scoped>
.yk-bottom {
  text-align: center;
  cursor: pointer;
  border: none;
}

.base {
  min-width: 80px;
  height: 36px;
  border-radius: 20px;
  padding: 0 20px;
}

.max {
  min-width: 100px;
  height: 48px;
  border-radius: 24px;
}

.small {
  min-width: 72px;
  height: 32px;
  border-radius: 24px;
  padding: 0 20px;
}

.big {
  min-width: 200px;
  height: 48px;
  border-radius: 24px;
}

// nom
.primary {
  background: @gray-1;
  color: @gray-10;
}

.secondary {
  background: @gray-10;
  color: @gray-1;
  border: 1px solid @gray-1;
}

.cprimary {
  background: @primary-color;
  color: @gray-10;
  font-weight: 600;
}

.csecondary {
  background: @gray-10;
  color: @gray-1;
}


</style>